class Profile {
	static belongsTo = User
	static hasmany = [topicCategories: TopicCategory]
	
	/** User Real Name*/
	String userRealName
	/** User head photo */
	byte[] photo	
	/** 个人简介 */
	String bio
	/** 生日 */
	Date birthday

	Date dateCreated
	Date lastUpdated
	
    static constraints = {
		userRealName(nullable:true, size:4..16)
		photo(nullable:true)
		bio(nullable:true, maxSize:1000)
    }
}
